
<style>
<!--

-->
</style>
<!--
	Sau khi login vào hệ thống, Element này sẽ hiện các tính năng cơ bản cho người dùng.
	@Date : 20/4/2011
	@Author : Nguyen Tan Viet
	@Email : viethoavang@gmail.com
-->

<table class="tablebg_lightblue" border="0" cellpadding="0" cellspacing="0" width="100%"> 
	<tbody>
		<tr> 
			<td> 
				<div class="hspace5"></div> 
				<table celpadding="0" class="tablebg_white" border="0" cellspacing="0" width="100%">  
					<tbody>
						<tr>
							<td colspan="2" class="section_title"> 
								<div class="floatleft">
									<img src="<?php echo $this->webroot; ?>img/post/icon_pic.gif" height="15" width="3">
								</div> 
								<div style="padding-top: 3px;">&nbsp;&nbsp;Tính năng</div> 
							</td>
						</tr>
						<tr> 
							<td>		
								<span style="color: rgb(159, 136, 0); font-weight: bold; "> <img src="<?php echo $this->webroot ;?>img/post/user_management.png"  border="0" height="16" width="16"> </span>
								&nbsp;&nbsp;
								<span>
									<?php echo $html->link('Thông tin cá nhân', array('controller' => 'users', 'action' => 'index'), array('id' => 'catmenu', 'style' => 'display: inline')) ; ?>
								</span>
								<br /> 
								
								<?php if ($session->read('Auth.User.group_id') == 1):?>
									<span style="color: red; font-weight: bold; "> <img src="<?php echo $this->webroot ;?>img/post/user_management.png"  border="0" height="16" width="16"> </span>
									&nbsp;&nbsp;
									<span>										
										<a href="<?php echo $this->webroot;?>admin" id="catmenu" style="display: inline; color: red;">Admin</a>
									</span>
									<br /> 
								<?php endif;?>
								
								<?php if ($session->read('Auth.User.group_id') == 2):?>
									<span style="color: red; font-weight: bold; "> <img src="<?php echo $this->webroot ;?>img/post/user_management.png"  border="0" height="16" width="16"> </span>
									&nbsp;&nbsp;
									<span>										
										<a href="<?php echo $this->webroot;?>admin" id="catmenu" style="display: inline; color: red;">Manager</a>
									</span>
									<br /> 
								<?php endif;?>
								
								<span style="color: rgb(159, 136, 0); font-weight: bold; "> <img src="<?php echo $this->webroot ;?>img/post/post_entry.png"  border="0" height="16" width="16"> </span>
								&nbsp;&nbsp;
								<span>
									<?php echo $html->link('Đăng tin quảng cáo', array('controller' => 'posts', 'action' => 'add'), array('id' => 'catmenu', 'style' => 'display: inline')) ; ?>
								</span>
								<br /> 

								<span style="color: rgb(159, 136, 0); font-weight: bold; "> <img src="<?php echo $this->webroot ;?>img/post/logout.png"  border="0" height="16" width="16"> </span>
								&nbsp;&nbsp;
								<span>
									<?php 
										/** 
										 * Thêm tên người dùng chỗ Thoát
										 */
										echo $html->link('Thoát ['.$session->read('Auth.User.username').']', array('controller' => 'users', 'action' => 'logout'), array('id' => 'catmenu', 'style' => 'display: inline')) ; 
									?>
								</span>
								<br /> 		
										
							</td>
						</tr> 
					</tbody>
				</table> 
			</td> 
		</tr>
	</tbody>
</table> 
